package com.iss.apartmentmanage.service.impl;

import com.iss.apartmentmanage.entity.HotelArea;
import com.iss.apartmentmanage.mapper.HotelAreaMapper;
import com.iss.apartmentmanage.service.HotelAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HotelAreaServiceImpl implements HotelAreaService {
    @Autowired
    HotelAreaMapper hotelAreaMapper;
    //查询全部的公寓区域
   public List<HotelArea> selectAllHotelArea(){
       List<HotelArea> hotelAreas = hotelAreaMapper.selectList(null);
       return hotelAreas;
   }

    @Override
    public HotelArea selectAreaById(Integer id) {
        HotelArea hotelArea = hotelAreaMapper.selectById(id);
        return hotelArea;

    }
}
